/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const system = {
  path: '/system',
  component: Layout,
  redirect: '/system/department',
  meta: {
    title: '系统管理',
    icon: 'table',
    roles: [
      '系统管理', '角色管理', '设置参数'
    ]
  },
  children: [
    {
      path: 'role',
      component: () => import('@/views/system/role'),
      name: 'Role',
      meta: { title: '角色管理', noCache: true, roles: ['角色管理'], keepAlive: true, isBack: false }
    },
    {
      path: 'setParam',
      component: () => import('@/views/system/setParam'),
      name: 'SetParam',
      meta: { title: '设置参数', noCache: true, roles: ['设置参数'], keepAlive: true, isBack: false }
    }
  ]
}
export default system
